package com.zbkj.common.response.standard;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "StandInfoResponse对象", description = "客户端获取标准详情")
public class StandInfoResponse {
    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    private Long id;

    /**
     * 名称
     */
    @TableField("name")
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 因子值
     */
    @ApiModelProperty(value = "因子值")
    @TableField("value")
    private String value;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    @TableField("describe_value")
    private String describeValue;

    /**
     * 0:国标 1:军标 2:地标
     */
    @ApiModelProperty(value = "0:国标 1:军标 2:地标")
    @TableField("standard_type")
    private Integer standardType;

    /**
     * 添加时间
     */
    @ApiModelProperty(value = "添加时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 0:正常 1:已删除
     */
    @ApiModelProperty(value = "0:正常 1:已删除")
    @TableField("delete_flag")
    private Integer deleteFlag;

    /**
     * 父ID
     */
    @ApiModelProperty(value = "父ID")
    private Long parentId;

    /**
     * 层级
     */
    @ApiModelProperty(value = "层级")
    @TableField("level")
    private Long level;

    /**
     * 子节点
     */
    private List<StandInfoResponse> childs;

}
